package com.itheima.health.dao;

import com.itheima.health.entity.HotSetmeal;
import com.itheima.health.pojo.Order;
import com.itheima.health.vo.SetmealCountVO;
import org.apache.ibatis.annotations.Mapper;

import java.time.LocalDate;
import java.util.Date;
import java.util.List;

/**
 * 预约DAO
 */
@Mapper
public interface OrderDao {
    Integer findBysetcount(Integer memberId, Date settingtime);

    void insert(Order order);
    Order getByOrderId(String id);
    Integer bookingToday(LocalDate bookingbeginTime, LocalDate bookingendTime);

    Integer visitsTodays(LocalDate date, LocalDate date1, String visits);

    List<HotSetmeal> Popularpackages();

    List<SetmealCountVO> findSetmealReport();

    Integer getReservation(Date orderDate);
}
